import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    //是否提交审核资料的状态
    review: "2",
    uploadGoodsInterval: '',
    uploadGoodsShow: false,
    excel_check_id: '',
    upload_updated_flag: false,
    distributeItem: '',//分销规则的详情信息
  },
  modules: {
    app,
    settings,
    user
  },
  getters
})

export default store
